package it.antonio.ilpizze.ioc;

import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;

public class MapDef<K,V> implements Iterable<Entry<K,Object>>{
	
	private Map<K, Object> entries = new LinkedHashMap<K, Object>();
	
	public void addKey(K key, Object iocKey){
		entries.put(key, iocKey);
	}
	public void addKey(K key){
		entries.put(key, key);
	}
	
	@Override
	public Iterator<Entry<K, Object>> iterator() {
		return entries.entrySet().iterator();
	}
	
	
}
